<template>
    <div>
        <div class="tab-back">
            <span class="left" @click="toback()"></span><div class="title">{{title}}</div>
            <div class="right"></div>
        </div>
    </div>
</template>

<script>
    export default {
        name: "navs",
        props:{
            title:{
                type:String,
            }
        },
        methods:{
            toback(){
                this.$router.go(-1);//返回上一层
            }
        }
    }
</script>

<style scoped>
    .tab-back {
        height: 44px;
        background: #fc5d4d;
        display: -webkit-box;
    }
    .tab-back .left {
        width: 44px;
        display: block;
        height: 44px;
        background: url() no-repeat 50%;
        background-size: 9px 16px;
    }
    .tab-back .title {
        -webkit-box-flex: 1;
        font-size: 15px;
        color: #fff;
        font-weight: 700;
        text-align: center;
        line-height: 44px;
    }
    .tab-back .right {
        width: 44px;
        height: 44px;
    }
</style>